package Model;

import java.awt.Point;

/**
 * Represents the only male bunny left in the FriskyBunny puzzle game
 * -Created Class(Feb 2,2011)
 * Samual Martelli
 * </pre>
 */
public class FriskyBunny extends Player{

	private int hopsLeft;
	private boolean hopping; //used to show if bunny is hopping
	public FriskyBunny(Point initialPlace) {
		super(initialPlace);
	}
	
	//Bunny hops only if hops are leftand he actually is attempting a hop
	//, afterwards moveAction invokes hop
	//based on where his coordinates moved too
	public void moveAction(){
		if(isHopping() && hopsLeft > NO_ITEMS ){
			hop(coordinates);
			hopsLeft--;
			setHopping(false);
		}
		
	};
	
	//hops based on the place meant to hop to
	public void hop(Point hedgeSpot){
		
	}
	
	public int getHopsLeft(){
		return hopsLeft;
	}

	public void setHopping(boolean iHop) {
		hopping = iHop;
	}
	
	//Game will want to reset bunnies hopsLeft 
	//either for new game or in-game action 
	public void setHopsLeft(int newHops) {
		hopsLeft = newHops;
	}


	public boolean isHopping() {
		return hopping;
	}

}
